For some special printers you need to control extra motors. Possible reasons are
- Extruder switches
- Clearing surface
- Leveling
Repetier-Firmware supports up to 4 extra motors that can be controlled by G201 P<motorId> X<pos> - Go to position X with motor motorId G202 P<motorId> X<setpos> - Mark current position as X G203 P<motorId> - Report current motor position G204 P<motorId> S<0/1> - Enable/disable motor G205 P<motorId> S<0/1> E<0/1> - Home motor, S1 = go back to stored position, E1 = home only if endstop was never met, meaning it was never homed with motor.
These motors are already special and there might be different types, so we can not assume one class fits all needs. So to keep it simple, the firmware defines this general interface which a motor must implement. That way we can handle any type without changing the main code.